use std::sync::OnceLock;

use macro_study::{
  say_hello1,
  foo
};

mod _struct;

mod my_enum;

mod generic;

mod cust_trait;

mod dyn_trait;

/// 标准输入输出
mod stand_io;

/// 解引用相关
mod defer;

mod life;

mod closure;

mod varibal;

mod tcp_server;


mod regex;

mod option;

 mod array;

 mod mutable;

mod from_and_into;

fn main() {

    let x = "5";
    println!( "x内存地址1：{:p}", &x);
    println!( "x内存地址2,二次引用调用：{:p}", &x);
    let x1 = x;
    println!( "x内存地址3,绑定变量后：{:p}", x1);

    t(x);
}

fn t(x: &str) {
    println!( "y内存地址：{:p}", x);
}